package NG::Sys::Data::Table;
use strict;
use warnings;

sub new {
    my $class = shift;
	my %arg;
	if(ref $_[0]){
		%arg = %{$_[0]};
	}elsif(@_ % 2){
		die "odd number params\n";
	}else{
		%arg = @_;
	}
	unless($arg{app}){
		die "need app\n";
	}
	unless($arg{table}){
		die "need table\n";
	}
	unless($arg{dbh}){
		$arg{dbh} = $arg{app}->dbh;
	}
    my $self = bless \%arg, $class;
	$self->init;
    return $self;
}
sub init {
	my $self = shift;
}

1;
